import React, { useState } from "react";
import style from "./index.css";
import url from "../../assets/chengge.png";

export default function Home() {
  const [n, setNum] = useState(0);
  return (
    <div>
      <h1>Home</h1>
      <div>
        {n}
        <button className={style.buty} onClick={() => setNum(n + 1)}>
          add
        </button>
        <img src={url} alt="" />
        <div className={style.bg}></div>
      </div>
    </div>
  );
}
